#include <stdio.h>
#include <string.h>

#define SAFE_DELETE(t) {delete t; t = NULL;}
#define SAFE_DELETE_ARRAY(t) {delete []t; t = NULL;}